package org.springframework.webmvc.test;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/8/26 16:28
 * @since JDK 1.8
 */
@RestControllerAdvice
public class ExceptionAdvice
{

	@ExceptionHandler(Exception.class)
	public Object exception(Exception e) {

		return "发生错误";
	}

}
